package com.yxw.live_vod_backend_boot.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 商品类目增改DTO类 ProductCategoryDTO
 *
 * @author xiexuxin
 * @date 2023-12-06
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ToString(callSuper=true)
@ApiModel(value="ProductCategoryDTO", description="商品类目增改")
public class ProductCategoryDTO implements Serializable {

    @NotBlank(message = "类目名称不能为空")
    @ApiModelProperty("类目名称")
    private String categoryName;

    @Range(min = 0, max = 1, message = "请输入0或1选择是否启用")
    @ApiModelProperty("是否启用 0 启用 1 禁用")
    private Integer isEnable;

}
